package com.zzuisa.sell.exception;

import com.zzuisa.sell.enums.ResultEnum;

/**
 * @ClassName SellException
 * @Description TODO
 * @Author SunAo
 * @Date 2018/8/5 下午8:49
 * @Version 1.0
 */
public class SellException extends RuntimeException {
    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}

